import request from '@/utils/request'

// 保存或更新员工临时出入记录(批量)
export function saveDengjiEmployeeAccess(data) {
  return request({
    url: '/api/dengji-employee-access/save',
    method: 'post',
    data
  })
}

// 获取员工临时出入记录列表
export function getDengjiEmployeeAccessList(params) {
  return request({
    url: '/api/dengji-employee-access/list',
    method: 'get',
    params
  })
}

// 获取员工临时出入记录详情
export function getDengjiEmployeeAccessDetail(id) {
  return request({
    url: `/api/dengji-employee-access/${id}`,
    method: 'get'
  })
}

// 删除员工临时出入记录
export function deleteDengjiEmployeeAccess(id) {
  return request({
    url: `/api/dengji-employee-access/${id}`,
    method: 'delete'
  })
} 